From: jeanlf Date: Mon, 30 Aug 2021 15:29:13 +0000 (+0200) Subject: [PATCH] fixed #1902 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u2^2~83 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e6e568048454156043e979a885130514a2a2bb1;p=gpac.git [PATCH] fixed #1902 Gbp-Pq: Name CVE-2021-40565.patch --- diff --git a/src/media_tools/av_parsers.c b/src/media_tools/av_parsers.c index a0330c6..e92cd16 100644 --- a/src/media_tools/av_parsers.c +++ b/src/media_tools/av_parsers.c @@ -5994,7 +5994,8 @@ s32 gf_media_avc_parse_nalu(GF_BitStream *bs, AVCState *avc) ret = 1; break; } - assert(avc->s_info.sps); + if (!avc->s_info.sps) + return -1; if (avc->s_info.sps->poc_type == n_state.sps->poc_type) { if (!avc->s_info.sps->poc_type) {